package com.meizu.service.jms;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class Consumer {
	 @JmsListener(destination = "TestQueue")  
	 public void receiveQueue(String text) {  
		 System.out.println("Consumer收到的报文为:"+text);  
	 }
	 @JmsListener(destination = "TestTopic")  
	 public void receiveTopic(String text) {  
		 System.out.println("Consumer收到的报文为:"+text);  
	 }  
}
